<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>conf_general.h Source File</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../vesc.jpg"/></td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="../../modules.html"><span>Modules</span></a></li>
      <li><a href="../../annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../files.html"><span>File&#160;List</span></a></li>
      <li><a href="../../globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">conf_general.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="../../df/df4/conf__general_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment">    Copyright 2012-2014 Benjamin Vedder benjamin@vedder.se</span></div>
<div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment">    This program is free software: you can redistribute it and/or modify</span></div>
<div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment">    it under the terms of the GNU General Public License as published by</span></div>
<div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment">    the Free Software Foundation, either version 3 of the License, or</span></div>
<div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment">    (at your option) any later version.</span></div>
<div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment">    This program is distributed in the hope that it will be useful,</span></div>
<div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment">    but WITHOUT ANY WARRANTY; without even the implied warranty of</span></div>
<div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span></div>
<div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">    GNU General Public License for more details.</span></div>
<div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"></span></div>
<div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment">    You should have received a copy of the GNU General Public License</span></div>
<div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment">    along with this program.  If not, see &lt;http://www.gnu.org/licenses/&gt;.</span></div>
<div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment">    */</span></div>
<div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;</div>
<div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * conf_general.h</span></div>
<div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> *</span></div>
<div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> *  Created on: 14 apr 2014</span></div>
<div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;<span class="comment"> *      Author: benjamin</span></div>
<div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;</div>
<div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;<span class="preprocessor">#ifndef CONF_GENERAL_H_</span></div>
<div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#define CONF_GENERAL_H_</span></div>
<div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;</div>
<div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="comment">// Firmware version</span></div>
<div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#a5a209f781c62e738bb2f3868604fbe77">   29</a></span>&#160;<span class="preprocessor">#define FW_VERSION_MAJOR    1</span></div>
<div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#ae224d2fae5df95eef5b8b1638b714731">   30</a></span>&#160;<span class="preprocessor">#define FW_VERSION_MINOR    12</span></div>
<div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;</div>
<div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="../../dc/d51/datatypes_8h.html">datatypes.h</a>&quot;</span></div>
<div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div>
<div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160;<span class="comment"> * Settings</span></div>
<div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#af8a66de8480015449b71c7e2a184245d">   37</a></span>&#160;<span class="preprocessor">#define AUTO_PRINT_FAULTS       0</span></div>
<div class="line"><a name="l00038"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#a203e46be358e8b2504b821df08d80c76">   38</a></span>&#160;<span class="preprocessor">#define SYSTEM_CORE_CLOCK       168000000</span></div>
<div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;</div>
<div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="comment">// Component parameters to override</span></div>
<div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;<span class="comment">//#define VIN_R1                33000.0</span></div>
<div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;<span class="comment">//#define VIN_R2                2200.0</span></div>
<div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;<span class="comment">//#define CURRENT_AMP_GAIN  10.0</span></div>
<div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;<span class="comment">//#define CURRENT_SHUNT_RES 0.0005</span></div>
<div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;<span class="comment">//#define WS2811_ENABLE         1</span></div>
<div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;<span class="comment">//#define CURR1_DOUBLE_SAMPLE       0</span></div>
<div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;<span class="comment">//#define CURR2_DOUBLE_SAMPLE       0</span></div>
<div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;</div>
<div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;<span class="comment"> * Select only one hardware version</span></div>
<div class="line"><a name="l00051"></a><span class="lineno">   51</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;<span class="comment">//#define HW_VERSION_40</span></div>
<div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;<span class="comment">//#define HW_VERSION_45</span></div>
<div class="line"><a name="l00054"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#afb5b082214e46b36710f13fb58f14536">   54</a></span>&#160;<span class="preprocessor">#define HW_VERSION_46 // Also for 4.7</span></div>
<div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;<span class="comment">//#define HW_VERSION_R2</span></div>
<div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;<span class="comment">//#define HW_VERSION_VICTOR_R1A</span></div>
<div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div>
<div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;<span class="comment"> * Select only one (default) motor configuration</span></div>
<div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;<span class="comment">//#define MCCONF_OUTRUNNER1</span></div>
<div class="line"><a name="l00062"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#a9b1e984078682e6796a6f01798bcff77">   62</a></span>&#160;<span class="preprocessor">#define MCCONF_OUTRUNNER2</span></div>
<div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;<span class="comment">//#define MCCONF_STEN</span></div>
<div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;</div>
<div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;<span class="comment"> * Select which custom application to use. To configure the default applications and</span></div>
<div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;<span class="comment"> * their settings, go to conf_general_read_app_configuration and enter the default init</span></div>
<div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;<span class="comment"> * values.</span></div>
<div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;<span class="comment">//#define USE_APP_STEN</span></div>
<div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;<span class="comment">//#define USE_APP_GURGALOF</span></div>
<div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;</div>
<div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;<span class="comment"> * Use encoder</span></div>
<div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00076"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#a42c15799695a95f5cf1a7ad50390405e">   76</a></span>&#160;<span class="preprocessor">#define ENCODER_ENABLE          0</span></div>
<div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#af219931ae59bfd17b6b02088d131fcc4">   77</a></span>&#160;<span class="preprocessor">#define ENCODER_COUNTS          14400</span></div>
<div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;<span class="comment">//#define ENCODER_COUNTS            10000</span></div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;<span class="comment"> * Enable CAN-bus</span></div>
<div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00083"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#aa7745485782511ac5adc139ebc479e39">   83</a></span>&#160;<span class="preprocessor">#define CAN_ENABLE              1</span></div>
<div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;</div>
<div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;<span class="comment"> * Settings for the external LEDs (hardcoded for now)</span></div>
<div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#ae87967dc13f8df6b437c54e253fa5c69">   88</a></span>&#160;<span class="preprocessor">#define LED_EXT_BATT_LOW        28.0</span></div>
<div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#ac11648a2d535467d40f9a605d5e00e76">   89</a></span>&#160;<span class="preprocessor">#define LED_EXT_BATT_HIGH       33.0</span></div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;</div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;<span class="comment"> * Output WS2811 signal on the HALL1 pin. Notice that hall sensors can&#39;t be used</span></div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;<span class="comment"> * at the same time.</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;<span class="preprocessor">#ifndef WS2811_ENABLE</span></div>
<div class="line"><a name="l00096"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#ae4fe8b9051fab0ed857f4b7f1ccb1da8">   96</a></span>&#160;<span class="preprocessor">#define WS2811_ENABLE           0</span></div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#a36f085cf73db8d6538b36c1e5c62e186">   98</a></span>&#160;<span class="preprocessor">#define WS2811_CLK_HZ           800000</span></div>
<div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#a603b0328c04f0a8e93f19a141bee3bf4">   99</a></span>&#160;<span class="preprocessor">#define WS2811_LED_NUM          14</span></div>
<div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#ae59d53cd573f80957f17600765aa3620">  100</a></span>&#160;<span class="preprocessor">#define WS2811_USE_CH2          1       // 0: CH1 (PB6) 1: CH2 (PB7)</span></div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="comment">/*</span></div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="comment"> * Servo output driver</span></div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="comment"> */</span></div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="preprocessor">#ifndef SERVO_OUT_ENABLE</span></div>
<div class="line"><a name="l00106"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#a47369a74f8e864d5208f95cabdff76c0">  106</a></span>&#160;<span class="preprocessor">#define SERVO_OUT_ENABLE        0       // Enable servo output</span></div>
<div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;<span class="preprocessor">#endif</span></div>
<div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#ac0a63d93effeb2311cf7d049f92fe915">  108</a></span>&#160;<span class="preprocessor">#define SERVO_OUT_SIMPLE        1       // Use simple HW-based driver (recommended)</span></div>
<div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#aceae775b605ad97b91d11c48efa165b7">  109</a></span>&#160;<span class="preprocessor">#define SERVO_OUT_PULSE_MIN_US  1000    // Minimum pulse length in microseconds</span></div>
<div class="line"><a name="l00110"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#aab1ccffb4f17970e303970fcb96b2020">  110</a></span>&#160;<span class="preprocessor">#define SERVO_OUT_PULSE_MAX_US  2000    // Maximum pulse length in microseconds</span></div>
<div class="line"><a name="l00111"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#a8ce08a27ce10ba22bc9ef7b3be74d277">  111</a></span>&#160;<span class="preprocessor">#define SERVO_OUT_RATE_HZ       50      // Update rate in Hz</span></div>
<div class="line"><a name="l00112"></a><span class="lineno">  112</span>&#160;</div>
<div class="line"><a name="l00113"></a><span class="lineno">  113</span>&#160;<span class="comment">// Correction factor for computations that depend on the old resistor division factor</span></div>
<div class="line"><a name="l00114"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#ab34d822f5a15a027a2517b31b4c3d57f">  114</a></span>&#160;<span class="preprocessor">#define VDIV_CORR           ((VIN_R2 / (VIN_R2 + VIN_R1)) / (2.2 / (2.2 + 33.0)))</span></div>
<div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div>
<div class="line"><a name="l00116"></a><span class="lineno">  116</span>&#160;<span class="comment">// Actual voltage on 3.3V net based on internal reference</span></div>
<div class="line"><a name="l00117"></a><span class="lineno">  117</span>&#160;<span class="comment">//#define V_REG             (1.21 / ((float)ADC_Value[ADC_IND_VREFINT] / 4095.0))</span></div>
<div class="line"><a name="l00118"></a><span class="lineno"><a class="line" href="../../df/df4/conf__general_8h.html#adc5c29a5cd7ad49dd65b3d5543d81264">  118</a></span>&#160;<span class="preprocessor">#define V_REG               3.3</span></div>
<div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;</div>
<div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="comment">// Functions</span></div>
<div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../df/df4/conf__general_8h.html#a1cd62f65c450ca92ee5da119bd1d98f9">conf_general_init</a>(<span class="keywordtype">void</span>);</div>
<div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../df/df4/conf__general_8h.html#a6f2c09742f7b165a035ff679d127d95d">conf_general_read_app_configuration</a>(<a class="code" href="../../d6/dc1/structapp__configuration.html">app_configuration</a> *conf);</div>
<div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="../../df/df4/conf__general_8h.html#ae5893fed8217cf83667b06be8c30569a">conf_general_store_app_configuration</a>(<a class="code" href="../../d6/dc1/structapp__configuration.html">app_configuration</a> *conf);</div>
<div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;<span class="keywordtype">void</span> <a class="code" href="../../df/df4/conf__general_8h.html#a2f7069529c71f0cb1f153ba243207702">conf_general_read_mc_configuration</a>(<a class="code" href="../../d5/d42/structmc__configuration.html">mc_configuration</a> *conf);</div>
<div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="../../df/df4/conf__general_8h.html#a1afd3ac11a995e2cb5c2c4e9d7871eec">conf_general_store_mc_configuration</a>(<a class="code" href="../../d5/d42/structmc__configuration.html">mc_configuration</a> *conf);</div>
<div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;<span class="keywordtype">bool</span> <a class="code" href="../../df/df4/conf__general_8h.html#af07b8623a9407976ed52024a1c615fa1">conf_general_detect_motor_param</a>(<span class="keywordtype">float</span> current, <span class="keywordtype">float</span> min_rpm, <span class="keywordtype">float</span> low_duty,</div>
<div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;        <span class="keywordtype">float</span> *int_limit, <span class="keywordtype">float</span> *bemf_coupling_k, int8_t *hall_table, <span class="keywordtype">int</span> *hall_res);</div>
<div class="line"><a name="l00128"></a><span class="lineno">  128</span>&#160;</div>
<div class="line"><a name="l00129"></a><span class="lineno">  129</span>&#160;<span class="preprocessor">#endif </span><span class="comment">/* CONF_GENERAL_H_ */</span><span class="preprocessor"></span></div>
<div class="ttc" id="datatypes_8h_html"><div class="ttname"><a href="../../dc/d51/datatypes_8h.html">datatypes.h</a></div></div>
<div class="ttc" id="conf__general_8h_html_a1cd62f65c450ca92ee5da119bd1d98f9"><div class="ttname"><a href="../../df/df4/conf__general_8h.html#a1cd62f65c450ca92ee5da119bd1d98f9">conf_general_init</a></div><div class="ttdeci">void conf_general_init(void)</div><div class="ttdef"><b>Definition:</b> conf_general.c:144</div></div>
<div class="ttc" id="conf__general_8h_html_a2f7069529c71f0cb1f153ba243207702"><div class="ttname"><a href="../../df/df4/conf__general_8h.html#a2f7069529c71f0cb1f153ba243207702">conf_general_read_mc_configuration</a></div><div class="ttdeci">void conf_general_read_mc_configuration(mc_configuration *conf)</div><div class="ttdef"><b>Definition:</b> conf_general.c:282</div></div>
<div class="ttc" id="structapp__configuration_html"><div class="ttname"><a href="../../d6/dc1/structapp__configuration.html">app_configuration</a></div><div class="ttdef"><b>Definition:</b> datatypes.h:246</div></div>
<div class="ttc" id="conf__general_8h_html_a1afd3ac11a995e2cb5c2c4e9d7871eec"><div class="ttname"><a href="../../df/df4/conf__general_8h.html#a1afd3ac11a995e2cb5c2c4e9d7871eec">conf_general_store_mc_configuration</a></div><div class="ttdeci">bool conf_general_store_mc_configuration(mc_configuration *conf)</div><div class="ttdef"><b>Definition:</b> conf_general.c:375</div></div>
<div class="ttc" id="conf__general_8h_html_a6f2c09742f7b165a035ff679d127d95d"><div class="ttname"><a href="../../df/df4/conf__general_8h.html#a6f2c09742f7b165a035ff679d127d95d">conf_general_read_app_configuration</a></div><div class="ttdeci">void conf_general_read_app_configuration(app_configuration *conf)</div><div class="ttdef"><b>Definition:</b> conf_general.c:169</div></div>
<div class="ttc" id="conf__general_8h_html_af07b8623a9407976ed52024a1c615fa1"><div class="ttname"><a href="../../df/df4/conf__general_8h.html#af07b8623a9407976ed52024a1c615fa1">conf_general_detect_motor_param</a></div><div class="ttdeci">bool conf_general_detect_motor_param(float current, float min_rpm, float low_duty, float *int_limit, float *bemf_coupling_k, int8_t *hall_table, int *hall_res)</div><div class="ttdef"><b>Definition:</b> conf_general.c:405</div></div>
<div class="ttc" id="conf__general_8h_html_ae5893fed8217cf83667b06be8c30569a"><div class="ttname"><a href="../../df/df4/conf__general_8h.html#ae5893fed8217cf83667b06be8c30569a">conf_general_store_app_configuration</a></div><div class="ttdeci">bool conf_general_store_app_configuration(app_configuration *conf)</div><div class="ttdef"><b>Definition:</b> conf_general.c:246</div></div>
<div class="ttc" id="structmc__configuration_html"><div class="ttname"><a href="../../d5/d42/structmc__configuration.html">mc_configuration</a></div><div class="ttdef"><b>Definition:</b> datatypes.h:91</div></div>
</div><!-- fragment --></div><!-- contents -->
<hr class="footer"/><address class="footer"><small>
Generated by <a href="https://github.com/joshdellay" target="_new">Josh Dellay</a>